import React, { Component } from 'react'
import { Link, Route } from 'react-router-dom'
import SubCategory from './SubCategory'

export default class Category extends Component {
  render() {
    return (
      <div>
        分类页面-主分类
        <div><Link to="/category/sub?id=11111111">分类1</Link></div>
        <div><Link to="/category/sub/2222222">分类2</Link></div>

        <Route path="/category/sub/:id?">
          <SubCategory />
        </Route>
      </div>
    )
  }
}
